package yb.ecp.fast.user.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yb.ecp.fast.user.dao.entity.AccountLoginRecordDO;

import java.util.List;
@Mapper
public interface AccountLoginRecordMapper {
    int insert(AccountLoginRecordDO record);

    List<AccountLoginRecordDO> selectAll();
    //根据ip获取有一条有归属地的记录
   AccountLoginRecordDO selectOneHasIpBelong(@Param("loginIp") String loginIp);
   //更新记录的ip归属地信息
   int updateIpBelong(@Param("id") String id ,@Param("ipHome") String ipHome);
}